import Vue from 'vue'
import VueRouter from 'vue-router'
import Tabble from '@/views/tabbar'
Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    name: 'tabble',
    redirect: '/product',
    component: Tabble,
    children:[{
      path: '/about',
      name: 'about',
      component: () => import('@/views/tabbar/nav')
    },
    {
      path: '/shopping',
      component: () => import('@/views/shopping/')
    },
    {
      path: '/product',
      component:()=>import('@/views/product')
    },
    {
      path: '/details',
      component: () => import('@/views/Detail/index')
    },
    {
      path: '/store',
      component: () => import('@/views/sort/')
    },
    {
      path: '/my',
      component: () => import('@/views/My')
    },
     
  ]
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
